
package com.coderman.infosys.auth.infrast.acl.impl;

import java.util.List;
import com.coderman.infosys.auth.infrast.acl.req.dto.DepartmentQueryDTO;
import com.coderman.infosys.auth.infrast.acl.DepartmentServiceAdapter;
import com.coderman.infosys.auth.infrast.acl.res.dto.DepartDTO;
import com.coderman.infosys.auth.infrast.acl.convert.DepartmentConvertor;
import com.google.common.collect.Lists;
import org.apache.dubbo.config.annotation.Reference;
import com.coderman.infosys.user.api.facade.DepartmentQueryFacade;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @Description:接口实现类
 * @Author：
 * @CreateTime：2022-01-02 15:27:38
 * @version v1.0
 *
 *
 * 为了保障服务工程尽量减少对外部服务的依赖而顺利启动，这里把
 * DepartmentServiceAdapter的Service注解注释调
 * 不过需要说明的是acl这一层包是对dubbo接口的包装，
 * 同理如果是springcloud feign接口或者直接就是rest接口也可以在这里进行包装
 *
 * 扩展一点来看如果有第三方接口的话也可以在acl这一层进行封装
 */

//@Service
public class DepartmentServiceAdapterImpl  implements DepartmentServiceAdapter{

	private  Logger logger = LoggerFactory.getLogger(this.getClass());


    @Reference
    private DepartmentQueryFacade departmentQueryFacade;


    @Override
	public List<DepartDTO> queryAllDepartment(DepartmentQueryDTO queryDto){
        com.coderman.infosys.user.api.dto.request.DepartmentQueryDTO departmentQueryDTO = DepartmentConvertor.INSTANCE.departmentReqConvert(queryDto);

        return Lists.newArrayList();
    }

    @Override
	public List<DepartDTO> queryDepartmentsList(Long pId){

        return Lists.newArrayList();
    }

}
